<admintpl file="header" />
</head>
<body>
    <div class="wrap js-check-wrap">
        <ul class="nav nav-tabs">
            <li><a href="{:U('SiteVisa/index')}">现场签证流程单管理</a></li>
            <if condition="($Role eq 2) AND ($userrole['role'] eq 5)">
                <li><a href="{:U('SiteVisa/add')}">新增现场签证流程单</a></li>
            </if>
            <li class="active"><a href="{:U('SiteVisa/auditHistory', array('id'=>I('request.id/s','')))}">审批流程</a></li>
        </ul>
        <table class="table table-hover table-bordered">
            <thead>
                <tr>
                    <th>审核状态</th>
                    <th>审核意见</th>
                    <th>审批层级</th>
                    <th>审核人</th>
                    <th>审核部门</th>
                    <th>审核时间</th>
                </tr>
            </thead>
            <tbody>
            <foreach name="audits" item="vo">
                <tr>
                    <td>
                <if condition="$vo['audit_status'] eq 1">
                    同意
                    <else />
                    驳回
                </if>
                </td>
                <td>{$vo.audit_reason}</td>
                <td>{$vo.audit_level} / <php>echo (intval(($vo['level'] != '' ? $vo['level'] : 0)) + 1) * 2;</php></td>
                <td>{$vo.real_name}</td>
                <td>{$vo.department_name}</td>
                <td>{$vo.add_time}</td>
                </tr>
            </foreach>
            </tbody>			
        </table>
        <div class="pagination">{$page}</div>
    </div>
    <script src="__PUBLIC__/js/common.js"></script>
</body>
</html>